home *** CD-ROM | disk | FTP | other *** search
/ Aminet 40 / Aminet 40 (2000)(Schatztruhe)[!][Dec 2000].iso / Aminet / util / cdity / ModeProSrc.lha / Daemon / OldPatch / OLD < prev    next >
Text File  |  1997-11-22  |  1KB  |  40 lines

  1.  /*
  2.     
  3.     if(pd->DNode->CenterFlags)
  4.       {    
  5.         if(GetDisplayInfoData(NULL,(UBYTE *)&pd->DimInfo,sizeof(struct DimensionInfo),DTAG_DIMS,pd->ModeID))
  6.         {
  7.           if(pd->DNode->CenterFlags & 1)
  8.           {
  9.             if(pd->Width>-1)
  10.             {
  11. #ifdef ADD_DEBUG_CODE
  12.               if(MPSem->Debug)
  13.               {
  14.                 KP("  DimInfo.StdOScan.MinX=%ld  DimInfo.StdOScan.MaxX=%ld  Width=%ld\n",pd->DimInfo.StdOScan.MinX,pd->DimInfo.StdOScan.MaxX,pd->Width);
  15.               }
  16. #endif
  17.               pd->NewTags[pd->TagNumber].ti_Tag=SA_Left;
  18.               pd->NewTags[pd->TagNumber].ti_Data=((pd->DimInfo.StdOScan.MaxX-pd->DimInfo.StdOScan.MinX)-pd->Width)/2+pd->DimInfo.StdOScan.MinX;
  19.               pd->TagNumber++;
  20.             }
  21.           }
  22.           if(pd->DNode->CenterFlags & 2)
  23.           {
  24.             if(pd->Height>-1)
  25.             {
  26. #ifdef ADD_DEBUG_CODE
  27.               if(MPSem->Debug)
  28.               {
  29.                 KP("  DimInfo.StdOScan.MinY=%ld  DimInfo.StdOScan.MaxY=%ld  Height=%ld\n",pd->DimInfo.StdOScan.MinY,pd->DimInfo.StdOScan.MaxY,pd->Height);
  30.               }
  31. #endif
  32.               
  33.               pd->NewTags[pd->TagNumber].ti_Tag=SA_Top;
  34.               pd->NewTags[pd->TagNumber].ti_Data=((pd->DimInfo.StdOScan.MaxY-pd->DimInfo.StdOScan.MinY)-pd->Height)/2+pd->DimInfo.StdOScan.MinY;
  35.               pd->TagNumber++;
  36.             }
  37.           }
  38.         }
  39.       }*/
  40.